<?

class General_Form extends General_Db_Table_Row {



	public function getFormElements() {
		$elements = $this->findGeneral_Form_Elements($this->select()->order('formelement_order'));

		$elementRowClass = $elements->getTable()->info('rowClass');
		$primaryKey = current($elements->getTable()->info('primary'));

		foreach ($elements as $element) {
			$this->_dependentData[$elementRowClass][$element->{$primaryKey}] = $element;
		}

	}
}